package com.zzl.study.demo;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean;
import org.springframework.context.annotation.Bean;
import org.springframework.web.client.RestClient;

/**
 * 利用MCP Router开发的网关服务，代理Nacos上注册的MCP Server工具的示例项目启动类
 *
 * @author: zhangzl
 * @date: 2025/10/20 10:08
 * @version: 1.0
 */
@SpringBootApplication
public class NacosMcpServerGatewayApplication {

    public static void main(String[] args) {
        SpringApplication.run(NacosMcpServerGatewayApplication.class, args);
    }

    @Bean
    @ConditionalOnMissingBean
    public RestClient.Builder restClientBuilder() {
        return RestClient.builder();
    }

}
